package logic.SysOrganization

import cn.ibizlab.util.domain.EntityBase
import cn.ibizlab.util.helper.RuleUtils
import cn.ibizlab.util.security.AuthenticationUser
import cn.ibizlab.util.security.SpringContextHolder
import cn.ibizlab.core.ad.domain.SysOrganization
import cn.ibizlab.core.ad.service.SysOrganizationService
import cn.ibizlab.core.ad.domain.SysOrganization
import cn.ibizlab.core.ad.service.SysOrganizationService
import cn.ibizlab.core.ad.domain.SysOrganization
import cn.ibizlab.core.ad.service.SysOrganizationService
import com.alibaba.fastjson.JSONObject
import org.springframework.util.ObjectUtils

/**
 *  全部数据
 */
class All {

    //当前用户
    def curuser = AuthenticationUser.getAuthenticationUser()
    //传入变量
    def _default
    def _filter = new EntityBase()
    //list
    def _list = new SysOrganization()
    //orgfilter
    def _orgfilter = new SysOrganization()
    //返回参数
    def _return

    def execute(arg) {
        println 'running....'
        _default = arg
        
        
        _return = arg
        begin()
        println 'running end....'
        return _return
    }

    //开始
    def begin() {
    
        //连接名称
        if(true) {
            prepareparam1()
        }
    }

    //准备参数
    def prepareparam1() {
        _orgfilter.set("size", "10000")
        _orgfilter.set("sort", "sort,asc")

        if(true) {
            dedataquery1()
        }
    }

    //实体数据查询
    def dedataquery1() {
        //DEDataQuery 暂未实现
        if(true) {
            end1()
        }
    }

    //结束
    def end1() {
        _return = _list

    }

}
